package quotation.web.invite.ddd.form;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Range;
import quotation.enums.TimeUnitEnum;


/**
 * @author lyx
 * @date 2025/2/24
 */
@Data
public class GenerateForm {

    @ApiModelProperty(value = "有效次数", required = false)
    private Integer count = 1;

    @ApiModelProperty(value = "有效期", required = false)
    private Integer expire = 7;

    /**
     * {@link TimeUnitEnum}
     */
    @ApiModelProperty(value = "时间单位,1:天，2:小时，3:分钟", required = false)
    @Range(min = 1, max = 3)
    private Integer timeUnit = 1;

}
